<?php namespace app\admin\validate;
use think\Validate;
//标签验证
class Tag extends Validate{
	protected $rule =   [
        'tname'  => 'require',
         'sort'   => 'require|number|between:1,100',
    ];
    
    protected $message  =   [
        'tname.require' => '请输入标签名称！',
//      'tname.max'     => '标签名称最多不能超过25个字符！',
       'sort.require'  => '请输入标签排序',
        'sort.number'   => '标签排序必须是数字',
        'sort.between'  => '标签排序只能在1-100之间',
      
    ];
	
}

